package com.ruoyi.settled.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.apache.ibatis.type.Alias;

import java.math.BigDecimal;

/**
 * 协议规则对象 agreement_rule
 * 
 * @author huangchen
 * @date 2025-01-18
 */

public class AgreementRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 协议规则编码 */
    @Excel(name = "协议规则编码")
    private String ruleCode;

    /** 协议编码 */
    @Excel(name = "协议编码")
    private String agreementCode;

    /** 协议结算公式 */
    @Excel(name = "协议结算公式")
    private String agreementFormula;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal taxRate;

    /** 税额 */
    @Excel(name = "税额")
    private BigDecimal taxAmount;

    /** 结算周期 */
    @Excel(name = "结算周期")
    private String settlementCycle;

    public void setRuleCode(String ruleCode) 
    {
        this.ruleCode = ruleCode;
    }

    public String getRuleCode() 
    {
        return ruleCode;
    }
    public void setAgreementCode(String agreementCode) 
    {
        this.agreementCode = agreementCode;
    }

    public String getAgreementCode() 
    {
        return agreementCode;
    }
    public void setAgreementFormula(String agreementFormula) 
    {
        this.agreementFormula = agreementFormula;
    }

    public String getAgreementFormula() 
    {
        return agreementFormula;
    }
    public void setTaxRate(BigDecimal taxRate) 
    {
        this.taxRate = taxRate;
    }

    public BigDecimal getTaxRate() 
    {
        return taxRate;
    }
    public void setTaxAmount(BigDecimal taxAmount) 
    {
        this.taxAmount = taxAmount;
    }

    public BigDecimal getTaxAmount() 
    {
        return taxAmount;
    }
    public void setSettlementCycle(String settlementCycle) 
    {
        this.settlementCycle = settlementCycle;
    }

    public String getSettlementCycle() 
    {
        return settlementCycle;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ruleCode", getRuleCode())
            .append("agreementCode", getAgreementCode())
            .append("agreementFormula", getAgreementFormula())
            .append("taxRate", getTaxRate())
            .append("taxAmount", getTaxAmount())
            .append("settlementCycle", getSettlementCycle())
            .append("remark", getRemark())
            .toString();
    }

    public boolean isEmpty() {
        return false;
    }
}
